from requests import get
with get('https://api.example.com/data', stream=True) as response:
    for data in response.iter_content(chunk_size=1024):
        process_data(data)